package io;

import java.io.File;

//文件重命名
public class Demo5 {
    public static void main(String[] args) {
        File f1 = new File("./test.txt");
        File f2 = new File("./test2.txt");
        System.out.println(f1.renameTo(f2));
    }
}
